package com.sgq.vue.entity.resource;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author: 83778
 * @date: 2023-12-19 18:08
 * @desc:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("resource_weather")
public class Weather implements Serializable {

        private static final long serialVersionUID = 1L;

        @TableId(value = "id", type = IdType.AUTO)
        private Long id;

        private Integer nums;    //今日实时请求次数

        @TableField("city_id")
        @JSONField(name = "cityid")
        private Long cityId;

        private String city;

        @JSONField(format = "yyyy-MM-dd")
        private Date date;  //当前日期

        private String  week;

        @JSONField(name = "update_time",format = "HH:mm")
        private Date updateTime;  //更新时间

        private String  wea;     //天气情况

        @JSONField(name = "wea_img")
        private String  weaImg; //天气图片

        private String  tem;    //实况温度

        @JSONField(name = "tem_day")
        private Integer  temDay;  //白天温度(高温)

        @JSONField(name = "tem_night")
        private Integer  temNight;  //夜间温度(低温)

        private String  win;  //风向

        @JSONField(name = "win_speed")
        private String  winSpeed;  //风力

        @JSONField(name = "win_meter")
        private String  winMeter;  //风速

        private Integer  air;  //空气质量

        private Integer  pressure;  //气压

        private String  humidity;  //湿度

        @TableField(exist = false) //省市标签类型
        private String tagType;

        @ApiModelProperty(value = "其他参数")
        @TableField(exist = false)
        private Map<String,Object> param = new HashMap<>();
}
